package Dao;

import Bean.Furn;
import Bean.Page;

import java.util.List;

public interface FurnDao {
    //返回所有的家居信息，后面再考虑分页
    public List<Furn> getAllFurn();
    public boolean InsertFurn(Furn furn);
    public Furn getFurn(String name ,String Merchant);
    public boolean deleteFurn(String FurnName,String Merchant);
    public boolean updateFurn(Integer id ,Furn furn);
    public Furn getOneFurn(String sql, Object... nums);
    public Integer getCount(String sql,Object... nums);
    public List<Furn> getSomeFurn(String sql,Page page);
    public Page<Furn> getPage(int begin,int pageSuze);
    public List<Furn> Search(String keyWord ,int begin,int Size);
}
